@import '@/styles/variable.scss';
$blackColor: #404040;
$greyColor: #636363;

.mine-page {
  .mine-navbar {
    .navbar-content {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
      img {
        width: 0.26rem;
        height: 0.26rem;
        border-radius: 50%;
      }
      span {
        padding-left: 0.08rem;
        font-size: 0.12rem;
        color: $blackColor;
      }
    }
  }

  .mine-content {
    .header {
      height: 0.74rem;
      padding: 0.08rem 0 0.16rem 0.25rem;
      display: flex;
      align-items: center;
      .userPic {
        width: 0.5rem;
        height: 0.5rem;
        font-size: 0;
        border: 3px solid #fff;
        border-radius: 50%;
        overflow: hidden;
        img {
          display: block;
          width: 100%;
          aspect-ratio: 1;
          border-radius: 50%;
        }
      }
      .userName {
        color: $blackColor;
        padding-left: 0.14rem;
        font-weight: bold;
      }
    }

    .iconlist-box {
      padding: 0.2rem 0;
      border-radius: 0.1rem;
      margin: 0 0.15rem 0.15rem;
      background-color: #fff;
      overflow: hidden;
      .iconbox {
        float: left;
        width: 25%;
        display: flex;
        flex-direction: column;
        align-items: center;
        img {
          width: 0.3rem;
          height: 0.3rem;
        }
        p {
          padding-top: 0.08rem;
          font-size: 0.12rem;
          color: $greyColor;
        }
      }
      .iconbox:nth-of-type(n + 5) {
        padding-top: 0.3rem;
      }
    }

    .your-like-music {
      margin: 0 0.15rem 0.15rem;
      padding: 0.15rem;
      border-radius: 0.1rem;
      background-color: #fff;
      display: flex;
      justify-content: space-between;
      align-items: center;
      &:active {
        background-color: $lightBgc;
      }
      .like-icon {
        flex-basis: 0.5rem;
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 0.1rem;
        background-color: #9b9b9b;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        .icon-aixin {
          color: #fff;
          font-size: 0.3rem;
        }
        img {
          width: 100%;
        }
      }
      .like-tip {
        flex: 1;
        padding-left: 0.1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        p {
          color: $blackColor;
          font-size: 0.14rem;
          padding-bottom: 0.04rem;
        }
        span {
          font-size: 0.1rem;
          color: grey;
        }
      }
      .music-model {
        font-size: 0.1rem;
        border-radius: 0.2rem;
        border: 1px solid rgb(187, 187, 187);
        padding: 0.04rem 0.08rem;
      }
    }

    .mine-song-list {
      .create-song-list,
      .favorite-sont-list {
        margin: 0 0.15rem;
        // 这里必须有 margin-top, 不然点击 tab 时, 不能触发 粘性置顶
        margin-top: .02rem;
        padding-top: .08rem;
        .content {
          border-radius: 0.1rem;
          background-color: #fff;
          overflow: hidden;
          p.title {
            padding: 0.12rem 0;
            background-color: #fff2ea;
            color: #fc9662;
            text-align: center;
            font-size: 0.12rem;
          }
          .main-content {
            color: #9d9d9d;
            font-size: .13rem;
            padding: 0.1rem 0;
            .title {
              padding: 0 .15rem;
              display: flex;
              align-items: center;
              justify-content: space-between;
              .iconfont {
                padding: 0.05rem 0;
                font-size: 0.18rem;
                width: .12rem;
              }
              .icon-jiahao {
                flex: 1;
                text-align: right;
                font-size: 0.15rem;
                padding-right: 0.2rem;
              }
            }
            .import {
              display: flex;
              align-items: center;
              padding: .05rem .15rem 0;
              .img-box {
                width: .5rem;
                height: .5rem;
                background-color: #f3f3f3;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 0.1rem;
                img {
                  width: 0.2rem;
                  height: 0.2rem;
                }
              }
              p.text {
                padding-left: 0.15rem;
                font-size: 0.14rem;
                color: rgb(31, 31, 31) !important;
              }
            }
            .no-favorite {
              padding: 0.25rem 0;
              text-align: center;
            }
            .list-box {
              padding: .05rem .15rem;
              &:active {
                background-color: $lightBgc;
              }
            }
          }
        }
      }
      .favorite-sont-list {
        margin-bottom: 0.2rem;
        .content {
          .main-content {
            .list-box {
              &:nth-last-of-type(1) {
                margin-bottom: 0;
              }
            }
          }
        }
      }
    }

    .recommend-for-you {
      margin: 0.05rem 0.15rem 0;
      .title {
        height: 0.33rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        span {
          font-size: .18rem;
          font-weight: bold;
        }
        i {
          background-color: #e9e9e9;
          font-size: 0.14rem;
          color: #888;
          padding: 0.08rem;
          border-radius: 50%;
        }
      }
      .content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-top: 0.16rem;
        min-height: 1.5rem;
        position: relative;
        .content-item {
          width: 31.5%;
          &:nth-of-type(n + 4) {
            padding-top: .15rem;
          }
        }
      }
    }
  
    .more {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: .15rem 0 .25rem;
      span {
        border: 1px solid #ddd;
        padding: 0.08rem 0.1rem;
        font-size: 0.12rem;
        border-radius: 1rem;
        color: #646464;
      }
    }
  }
}